﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Communergy.Common;
using System.Configuration;

namespace CurrentCostLibrary
{
    public class CurrentCostMonitorFactory
    {
        public static IEnergyMonitorProvider GetCurrentCostMonitor(string port)
        {
            var device = new CurrentCostDevice();
            device.Port = port;// ;
            device.BaudRate = Convert.ToInt32(ConfigurationSettings.AppSettings["baudRate"]);
            return device;
        }

        //TODO - mock object, should not be here
        public static IEnergyMonitorProvider GetRandomDataGenerator()
        {
            var device = new RandomDataMonitorProvider();
            return device;
        }
    }
}
